<?php /* Smarty version 2.6.11, created on 2011-07-04 10:12:17
         compiled from index.php */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站管理</title>
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/ui-lightness/jquery-ui-1.8.8.custom.css" type=text/css rel=stylesheet>
<SCRIPT src="style/js/jquery-1.4.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.8.6.custom.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>
<script language="javascript">
$(document).ready(function(){
	$(".click_img").css("cursor","pointer");
	$("#menu_button").toggle(
		function(){
			$(".menu").slideUp("slow"); 
			$(this).attr("src","style/images/button_down.gif");
		},function(){
			$(".menu").slideDown("slow"); 
			$(this).attr("src","style/images/button_top.gif");
		}
	);
	$(".menu_li").click(function(){
		var tbname = $(this).attr("tbname");
		var list = $(this).attr("list");
		if((list) == '1'){
			if (!document.getElementById("list_"+tbname)){
				$(".float_content").append('<div id="list_'+tbname+'" class="mode_list"></div>');
				$("#list_"+tbname).load("index.php?m="+tbname+"&a=list");
			}
			$(".mode_list").hide();
			$("#list_"+tbname).show();
			$(".float_content").show();
			$("#handle img").click();
		} else {
			//load('.body','index.php?m='+tbname+'&a=main');	
		}
	});
	listShow = true;
	$("#handle img").click(function(){
		var f = $(".float_div");
		if (listShow){
			var left = f.width() - $("#handle").width();
			f.animate({"left": -left}, "slow",function(){$("#handle img").attr("src","style/images/switch_left.gif");});
			listShow = false;
		}else {
			f.animate({"left": 0}, "slow",function(){$("#handle img").attr("src","style/images/switch_right.gif");});
			listShow = true;
		}
	});
	
	$("#handle").mouseover(function(){
		if(!listShow) $("#handle img").click();
	});
	
	
	$(".float_content").append('<div id="list_article" class="mode_list"></div>');
	$("#list_article").load("index.php?m=website&a=clist");
	scrollx({id:'float_div',l:0,f:1,t:130})
	$("#mainFrame").load(function() { 
		restIframe();
		mainFrame.document.body.onclick = function(){
			if(listShow){
				$("#handle img").click();
			}
		}
		//$(this).height("100%");
	})
	scrollx({id:'stat',l:0,f:1})
});
function restIframe(){
	$("#mainFrame").height(0); 
	$("#mainFrame").height($("#mainFrame").contents().height()+20);
}
</script>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="page_body" style="clear:both">
	<!--左侧栏-->
    <div class="float_div" id="float_div">
    <!--
    	<div class="float_list">
            <ul>
           		<li>友情链接</li>
            </ul>
        </div>
    -->
		<div class="float_content">
        </div>
        <div align="right" id="handle">
        	<img src="style/images/switch_right.gif" class="click_img" style=" padding:240px 0px 0px 0px ; width:10px;" />
        </div>
    </div>
    <!--左侧浮动栏END-->
    <!--主体-->
    <div class="body" style="float:right;  width:99%; z-index:100;">
    	<iframe src="index.php?a=man" id="mainFrame" name="mainFrame" frameborder="0" width="100%" height="100%" scrolling="no"></iframe>
    </div>
    <!--主体END-->
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>